<table style="width: 100%;" cellpadding="4" cellspacing="0">
	<tr>
		<td class="border2">

			<table style="width: 100%;" class="mainmenu5" cellpadding="0" cellspacing="0" border="0">
				<tr>
					<td width="7"><img src="design/pic/spacer.gif" class="sqr1" alt="" height="7" width="7" /></td>
					<td class="block_header">{language text='Mod_Messenger.alert.title'}</td>
				</tr>
			</table>

			<br />
			<br />

			{if $aAction == 'view'}
			<table style="width: 100%;" cellpadding="5" cellspacing="5">
			<tr>
			<td style="width: 20%; text-align: center;">
				<a href="{url link=public.user name=$aItem.user}">
                    {Account::Avatar sUser=$aItem.user iSize=60 class="pic1" onmouseover="showInfo5('`$aItem.user`', '', '');this.className='pic2';" onmouseout="this.className='pic1';return nd();"}
				</a>
			</td>
			<td style="font-size: 9pt; width: 80%;" class="color">
			<table style="width: 100%;">
				<tbody>
					<tr>
						<td style="font-size: 9pt; width: 20%; text-align: right;"
							class="color"><b>{language text="from"}</b>:</td>
						<td style="width: 80%;" class="color"><a class="link_description"
							href="{url link=public.user name=$aItem.user}"> {$aItem.user}</a></td>
					</tr>
					<tr>
						<td style="font-size: 9pt; width: 20%; text-align: right;"
							class="color"><b>{language text="date_399"}</b>:</td>
						<td style="font-size: 9pt; width: 80%;" class="color">{$aItem.time|date_format:$sDateFormat}</td>
					</tr>
				</tbody>
			</table>
			</td>
			</tr>
			</table>
			<div style="padding:8px;font-size:10pt;">
			{$aItem.text|process_code}
			</div>
			
			<div style="padding:6px; text-align:right;">
			{if $aItem.type == '2'}
				[ <a class="link_description" href="{url link='public.account.messages.alert' action='send' id=$aItem.id isgb=$aItem.user quote='true'}">{language text='Mod_Messenger.reply'}</a> ]
			{else}
				[ <a class="link_description" href="{url link='public.account.messages.alert' action='send' id=$aItem.id quote='true'}">{language text='Mod_Messenger.reply'}</a> ]
			{/if}
				
				[ <a class="link_description" href="{url link='public.account.messages.alert' deleteid=$aItem.id}" onclick="return sure('');">{language text='delete'}</a> ]
			</div>			

			{else}

			{if count($aAlerts) > 0}

			{if $bIsDeleted}
			<div style="padding:4px;font-size:10pt;font-weight:bold;">
			{language text='Mod_Messenger.alerts.removed'}
			</div>
			<br />
			{/if}

			<table style="width: 100%;">
			<tr>
    			<td style="width: 50%; font-size: 8pt; text-align: left;" class="color">{str_replace text="`viewing_apaging_fromrow_apaging_tor_589`" aPaging_fromRow="`$aPaging.fromRow`" aPaging_toRow="`$aPaging.toRow`" aPaging_totalRows="`$aPaging.totalRows`" }</td>
    			<td style="width: 50%; font-size: 8pt;" class="color">{include file="$sMainTemplatePath/_blocks/pager.html"}</td>
			</tr>
			</table>
			<br />

			<form name="myform" action="{url link=current}" method="post">
			{foreach from=$aAlerts item=aItem name=messages}
			<table style="width: 100%; margin-bottom: 3px;" class="{if $smarty.foreach.messages.iteration % 2}border13{else}border2{/if}" cellpadding="2" cellspacing="2">
			<tr>
        		<td style="font-size: 8pt; width: 5%; text-align: center;" class="color">
            		<input name="id[]" value="{$aItem.id}" type="checkbox" style="border:0" />
        		</td>
        		<td style="font-size: 8pt; width: 15%; text-align: center;">

            	<a href="{url link=public.user name=$aItem.user}">
		            {Account::Avatar sUser=$aItem.user iSize=50 class="pic1" onmouseover="showInfo5('`$aItem.user`', '', '');this.className='pic2';" onmouseout="this.className='pic1';return nd();"}
    	        </a>
    	    </td>
    	    <td style="font-size: 9pt; width: 80%;">
				{if $aItem.seen != '1'}<b>( {language text='Mod_Messenger.new.alert'} )</b>{/if}
				<a href="{url link=public.user name=$aItem.user}">{$aItem.user}</a> {language text='Mod_Messenger.left.a.comment'}
				{if $aItem.type == '1'}
				{language text='Mod_Messenger.type.blog'}
				{elseif $aItem.type == '2'}
				{language text='Mod_Messenger.type.gb'}
				{elseif $aItem.type == '3'}
				{language text='Mod_Messenger.type.image'}
				{elseif $aItem.type == '4'}
				{language text='Mod_Messenger.type.song'}
				{elseif $aItem.type == '5'}
				{language text='Mod_Messenger.type.album'}
				{elseif $aItem.type == '6'}
				{language text='Mod_Messenger.type.video'}
				{/if}
				{language text='Mod_Messenger.on'} {$aItem.time|date_format:$sDateFormat}
				<div style="padding:6px;">
					[ <a class="link_description" href="{url link='public.account.messages.alert' action='view' id=$aItem.id}">{language text='Mod_Messenger.view.comment'}</a> ]
					[ <a class="link_description" href="{url link='public.account.messages.alert' action='send' id=$aItem.id}">{language text='Mod_Messenger.view'}
				{if $aItem.type == '1'}
				{language text='Mod_Messenger.id.blog'}
				{elseif $aItem.type == '2'}
				{language text='Mod_Messenger.id.gb'}
				{elseif $aItem.type == '3'}
				{language text='Mod_Messenger.id.image'}
				{elseif $aItem.type == '4'}
				{language text='Mod_Messenger.id.song'}
				{elseif $aItem.type == '5'}
				{language text='Mod_Messenger.id.album'}
				{elseif $aItem.type == '6'}
				{language text='Mod_Messenger.id.video'}
				{/if}
					</a> ]
				</div>

	        </td>
    		</tr>
			</table>
			{/foreach}
			<br />
			<input value="{language text='Mod_Messenger.delete.alerts'}" type="submit" onclick="return checkEmpty();" class="mainmenu6" onmouseover="this.className='mainmenu7';" onmouseout="this.className='mainmenu6';" />&nbsp;
			<a href="javascript:void(0);" class="link_action" onclick="sel();">[ {language text="check_all"} ]</a>
			</form>
			<br />

			{else}
			<div style="text-align:center;font-size:10pt;">
			{language text='Mod_Messenger.alert.empty'}
			</div>
			<br />
			<br />
			{/if}
			{/if}

		</td>
	</tr>
</table>
